package com.sky.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;

import java.util.List;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    //增加员工
    void newEmployee(EmployeeDTO employeeDTO);

    //分页查询员工
    Page<Employee> pageEmployee(String name,long current, long size);

    //改变员工状态
    void statusEmployee(Integer status,long id);

    //编辑员工信息
    void editEmployee(EmployeeDTO employeeDTO);

    //根据id查询员工
    Employee getById(Long id);
}
